package com.mw.repository;

import com.mw.domain.Comment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentRepository extends JpaRepository<Comment,Long>{

    List<Comment> findAllByNid(String nid);

    List<Comment> findAllByUid(String uid);

    Comment findById(int id);

    void deleteAllByNid(String nid);
}
